package com.bjfu.college.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjfu.college.pojo.IntentionSchemeIntentionRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author 87290
* @description 针对表【intention_scheme_intention_record】的数据库操作Mapper
* @createDate 2023-07-13 17:37:39
* @Entity com.bjfu.college.pojo.IntentionSchemeIntentionRecord
*/
@Repository
public interface IntentionSchemeIntentionRecordMapper extends BaseMapper<IntentionSchemeIntentionRecord> {

    @Select("SELECT  Count(risk)" +
            " FROM intention_scheme_intention_record " +
            " ${ew.customSqlSegment} ")
    List<Integer> queryRiskRecordsCount(@Param("ew") Wrapper wrapper);

}




